﻿using System.IO;

namespace ZilLion.Service.TaskPlatform.Domain.Respository.Interface
{
    public interface ITaskPackageRespository
    {
        /// <summary>
        /// 按照包ID 或者包的二进制流
        /// </summary>
        /// <param name="packageKey"></param>
        /// <returns></returns>
        byte[] GetPackageBytes(string packageKey);
        /// <summary>
        /// 上传包
        /// </summary>
        /// <param name="fileStream"></param>
        /// <param name="packageKey"></param>
        /// <returns></returns>
        string UploadFileToGridFs(Stream fileStream, string packageKey);
    }
}